package yanc.app

class BootStrap {
    def userService
    def init = { servletContext ->
        def user = User.findByAccount("Superadmin")
        if (!user) {
            def user1 = new User(account: "Superadmin", password: userService.getMD5("123456"),rolesId: "1").insert()
        }
    }
    def destroy = {
    }
}
